.class public abstract Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;
.super Landroid/widget/LinearLayout;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/app/Activity;

.field private c:Landroid/widget/ImageView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->a:Landroid/content/Context;

    check-cast p1, Landroid/app/Activity;

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->b:Landroid/app/Activity;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->b()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->a:Landroid/content/Context;

    check-cast p1, Landroid/app/Activity;

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->b:Landroid/app/Activity;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->b()V

    return-void
.end method


# virtual methods
.method public abstract a()V
.end method

.method public b()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->a:Landroid/content/Context;

    const v1, 0x7f0302ce

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->e:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->e:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->e:Landroid/view/View;

    check-cast v0, Landroid/widget/LinearLayout;

    const/16 v1, 0x11

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->e:Landroid/view/View;

    const v1, 0x7f0c0e6f

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->c:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->e:Landroid/view/View;

    const v1, 0x7f0c0e70

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->d:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->c:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/lightapp/kaoqin/view/a;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kaoqin/view/a;-><init>(Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->d:Landroid/widget/TextView;

    new-instance v1, Lcom/waiqin365/lightapp/kaoqin/view/b;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kaoqin/view/b;-><init>(Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/view/c;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kaoqin/view/c;-><init>(Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public setIvImage(I)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->c:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public setOnClick(Z)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->e:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->setClickable(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->c:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setClickable(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setClickable(Z)V

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->setClickable(Z)V

    return-void
.end method

.method public setTv(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/CustomKaoqinOperationImgTV;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method
